#include<stdio.h>
#include<string.h>
#include<unistd.h>

int main()
{
  const char* fstr = "hello write";
  printf("hello printf");
  fprintf(stdout,"hello fprintf");
  sleep(2);
  fwrite(fstr,strlen(fstr),1,stdout);
  sleep(2);
  write(1,fstr,strlen(fstr));
  sleep(2);

  close(1);
  fork();

  return 0;
}
